package com.lagou.service.impl;

import com.lagouedu.service.DubboService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;
import org.springframework.stereotype.Component;

@Service
@Component
public class DubboServiceImpl implements DubboService {
    @Override
    public String getMsg(String param) {
        return "provider2：" +param + "----ip: " + RpcContext.getContext().getAttachment("ip");
    }
}
